home *** CD-ROM | disk | FTP | other *** search
- OPEN "r",#1,"AddressFile.rel",92
- FIELD #1,30 AS Nam$,30 AS Address$,20 AS City$,12 AS Phone$
-
- ReadData:
- INPUT "Address Number";Nmbr
- GET #1,Nmbr
- IF EOF(1) THEN PRINT "Record out of range." :GOTO ReadData
- PRINT Nam$
- PRINT Address$
- PRINT City$
- PRINT Phone$
- INPUT "Read another record (Y/N)";ans$
- IF UCASE$(ans$)<>"N" THEN ReadData
- CLOSE 1
- PRINT "File closed. Program ended."
-
-